/*
 * Copyright (C) 2019 Baidu, Inc. All Rights Reserved.
 */
package com.bootdo.hjh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.hjh.dao.TihuoOrderDao;
import com.bootdo.hjh.domain.StockDO;
import com.bootdo.hjh.domain.TihuoOrderDO;
import com.bootdo.hjh.service.TihuoOrderService;



@Service
public class TihuoOrderServiceImpl implements TihuoOrderService {
	@Autowired
	private TihuoOrderDao tihuoOrderDao;

	@Override
	public TihuoOrderDO get(Long id){
		return tihuoOrderDao.get(id);
	}

	@Override
	public List<TihuoOrderDO> list(Map<String, Object> map){
		return tihuoOrderDao.list(map);
	}

	@Override
	public int count(Map<String, Object> map){
		return tihuoOrderDao.count(map);
	}

	@Override
	public int save(TihuoOrderDO tihuoOrder){
		return tihuoOrderDao.save(tihuoOrder);
	}

	@Override
	public int update(TihuoOrderDO tihuoOrder){
		return tihuoOrderDao.update(tihuoOrder);
	}

	@Override
	public int remove(Long id){
		return tihuoOrderDao.remove(id);
	}

	@Override
	public int batchRemove(Long[] ids){
		return tihuoOrderDao.batchRemove(ids);
	}

	@Override
	public List<TihuoOrderDO> listTihuoOrders(Long userId, Integer productId, Integer offset, Integer limit) {
		return tihuoOrderDao.listTihuoOrders(userId, productId, offset, limit);
	}

	@Override
	public int countTihuoOrder(Long userId, Integer productId) {
		return tihuoOrderDao.countTihuoOrder(userId, productId);
	}

	@Override
	public int updateFahuo(Integer id, Integer shippingStatus, Integer shippingChannel, String shippingSn) {
		return tihuoOrderDao.updateFahuo(id, shippingStatus, shippingChannel, shippingSn);
	}
}
